package com.wtwd.wtwddevice.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.wtwd.device.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author mjy
 * @since 2024-05-17
 */
@ApiModel(value="AppComm对象", description="")
public class AppComm extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "app 通讯表主键id")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "app通讯唯一标识")
    private Long deviceId;

    @ApiModelProperty(value = "0:离线 1在线")
    private Integer status;

    @ApiModelProperty(value = "订阅主题")
    private String host;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    @Override
    public String toString() {
        return "AppComm{" +
                "id=" + id +
                ", deviceId=" + deviceId +
                ", status=" + status +
                ", host='" + host + '\'' +
                '}';
    }
}
